<!doctype html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!--[if IE 9]>    <html class="no-js ie9 oldie" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> 
<html class="no-js" lang="en"> <!--<![endif]-->
    <head>
        <meta name="author" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <meta charset="UTF-8">
        <meta name="revisit-after" content="7" />
        <meta name="webcrawlers" content="all" />
        <meta name="rating" content="general" />
        <meta name="spiders" content="all" />
        <meta name="robots" content="all" />
        <meta http-equiv="imagetoolbar" content="no" />

        <!--[if lt IE 9]>
        <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
        <link rel="stylesheet" type="text/css" href="css/ie8-and-down.css" />
        <![endif]-->    

        <?php
        $m_setting = new M_setting();
        $data_website = $m_setting->get();

        foreach ($data_website as $dt) {
            if ($dt->id == 7) {
                $title_website = $dt->value;
            }
            if ($dt->id == 8) {
                $keyword_website = $dt->value;
            }
        }

        echo "<meta name='keywords' content='$keyword_website' />";
        echo "<meta name='description' content='$title_website' />";

        $base_url = base_url() . 'assets/client/';
        $base_url_admin = base_url() . 'assets/admin/';
        echo $this->lib_load_css_js->load_css($base_url, "css/", "main.css");
        echo $this->lib_load_css_js->load_css($base_url, "css/", "blog.css");
        echo $this->lib_load_css_js->load_css($base_url, "css/", "category_3cols.css");
        echo $this->lib_load_css_js->load_css($base_url, "css/", "cart.css");
        echo $this->lib_load_css_js->load_css($base_url, "css/", "contact.css");
        
        echo $this->lib_load_css_js->load_css($base_url, "css/", "responsive.css");

        echo $this->lib_load_css_js->load_js($base_url, "js/", "jquery-1.7.1.js");
        echo $this->lib_load_css_js->load_js($base_url, "js/", "jquery.hoverdir.js");

        //load validate
        echo $this->lib_load_css_js->load_css($base_url, "js/validated/", "validationEngine.jquery.css");
        echo $this->lib_load_css_js->load_js($base_url, "js/validated/", "jquery.validationEngine-en.js");
        echo $this->lib_load_css_js->load_js($base_url, "js/validated/", "jquery.validationEngine.js");
        echo $this->lib_load_css_js->load_js($base_url, "js/validated/", "setvalidate.js");

        //load kota JS
        echo $this->lib_load_css_js->load_js($base_url, "js/", "call_provinsi_kota1.js");
        echo $this->lib_load_css_js->load_js($base_url, "js/", "call_provinsi_kota2.js");

        //load Jquery UI
        echo $this->lib_load_css_js->load_css($base_url_admin, "js/jqui/themes/base/", "jquery.ui.all.css");
        echo $this->lib_load_css_js->load_js($base_url_admin, "js/jqui/ui/", "jquery.ui.core.js");
        echo $this->lib_load_css_js->load_js($base_url_admin, "js/jqui/ui/", "jquery.ui.widget.js");
        echo $this->lib_load_css_js->load_js($base_url_admin, "js/jqui/ui/", "jquery.ui.tabs.js");
        echo $this->lib_load_css_js->load_js($base_url_admin, "js/jqui/", "call_tab.js");
        echo $this->lib_load_css_js->load_js($base_url_admin, "js/jqui/ui/", "jquery.ui.datepicker.js");
        echo $this->lib_load_css_js->load_css($base_url_admin, "js/jqui/themes/base/", "jquery.ui.theme.css");
        echo $this->lib_load_css_js->load_css($base_url_admin, "js/jqui/themes/base/", "jquery.ui.datepicker.css");
        echo $this->lib_load_css_js->load_css($base_url_admin, "js/jqui/themes/base/", "jquery.ui.button.css");
        echo $this->lib_load_css_js->load_css($base_url_admin, "js/jqui/themes/base/", "jquery.ui.core.css");
        echo $this->lib_load_css_js->load_js($base_url_admin, "js/jqui/", "call_date.js");
        echo $this->lib_load_css_js->load_js($base_url_admin, "js/jqui/", "call_date2.js");

        //jQuery.dropKick plug-in
        //echo $this->lib_load_css_js->load_css($base_url, "js/dropKick/", "dropkick.css");
        //echo $this->lib_load_css_js->load_js($base_url, "js/dropKick/", "jquery.dropkick-1.0.0.js");
        //jQuery.nicescroll plug-in
        echo $this->lib_load_css_js->load_js($base_url, "js/", "jquery.nicescroll.js");
        //jQuery.tweet plug-in
        echo $this->lib_load_css_js->load_js($base_url, "js/", "jquery.tweet.js");
        //jQuery.cycle2 plug-in
//        echo $this->lib_load_css_js->load_js($base_url, "js/", "jquery.cycle2.min.js");
//        echo $this->lib_load_css_js->load_js($base_url, "js/", "jquery.cycle2.tile.min.js");
        //jQuery.jcarousellite plug-in
        echo $this->lib_load_css_js->load_js($base_url, "js/", "jcarousellite_1.0.1.min.js");
        //jQuery.etalage plug-in
        echo $this->lib_load_css_js->load_js($base_url, "js/", "jquery.etalage.min.js");
        //jQuery.cookie plug-in
        echo $this->lib_load_css_js->load_js($base_url, "js/", "jquery.cookie.js");
        //my custom code
        echo $this->lib_load_css_js->load_js($base_url, "js/", "main.js");
        //slider
        echo $this->lib_load_css_js->load_css($base_url, "js/slider/", "orbit-1.2.3.css");
        echo $this->lib_load_css_js->load_js($base_url, "js/slider/", "jquery.orbit-1.2.3.min.js");
        ?>        
        <script type = "text/javascript">
            $(window).load(function() {
                $('#featured').orbit(
                {
                    animation: 'horizontal-push'                // fade, horizontal-slide, vertical-slide, horizontal-push
                });
            });
        </script>


        <script language="javascript" type="text/javascript">
            var base_url = "<?php echo base_url()
        ?>";
            function setSiteURL() {
                window.site = base_url;
            }
            setSiteURL();
        </script>

        <title><?php echo $title_website . " | " . $title; ?></title>
    </head>

    <body>

        <?php
        $this->load->view('parsing/client/nav_top');
        $this->load->view('parsing/client/header');
        $this->load->view('parsing/client/slider');
        ?>

        <div class="container">
<!--            <h2><?php //echo $title;         ?></h2>-->
            <?php
            $this->load->view('template_menu');
            $this->load->view($isi);
            ?>
        </div>


        <?php
        $this->load->view('parsing/client/footer');
        ?>

    </body>
</html>
